arm64: a37xx: populate pcie memory region
authorWilson Ding <[email protected]>
Mon, 26 Mar 2018 07:57:28 +0000 (15:57 +0800)
committerStefan Roese <[email protected]>
Fri, 30 Mar 2018 10:52:49 +0000 (12:52 +0200)
This patch added a new region of 32MiB AT 0xe800.0000
to Armada37x0's memory map. This region is supposed to
be mapped in MMU in order to enable the access to the
PCI I/O or MEM resources.

Signed-off-by: Wilson Ding <[email protected]>
Reviewed-on: http://vgitil04.il.marvell.com:8080/38724
Tested-by: iSoC Platform CI <[email protected]>
Reviewed-by: Victor Gu <[email protected]>
Signed-off-by: Ken Ma <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefan Roese <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
arch/arm/mach-mvebu/armada3700/cpu.c

index b9214f7bd9e1356e74e118271bae8a093588f1d0..ab4164cbe00d7f925478e4d787dbe2490fdb81c3 100644 (file)
@@ -45,6 +45,14 @@ static struct mm_region mvebu_mem_map[] = {
                .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
                         PTE_BLOCK_NON_SHARE
        },
+       {
+               /* PCI regions */
+               .phys = 0xe8000000UL,
+               .virt = 0xe8000000UL,
+               .size = 0x02000000UL,   /* 32MiB master PCI space */
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+                        PTE_BLOCK_NON_SHARE
+       },
        {
                /* List terminator */
                0,